mirror of
https://github.com/primer/css.git
synced 2024-12-23 14:13:14 +03:00
Change eslint sources
This commit is contained in:
parent
f038f479b4
commit
dcfd2a6fd6
@ -8,6 +8,8 @@
|
||||
"node": true
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2017
|
||||
}
|
||||
"ecmaVersion": 2017,
|
||||
"requireConfigFile": false
|
||||
},
|
||||
"parser": "@babel/eslint-parser"
|
||||
}
|
||||
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
||||
node-version: 12
|
||||
- run: yarn
|
||||
- name: Lint workflow files
|
||||
run: eslint script deprecations.js lib .storybook docs
|
||||
run: yarn eslint
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -21,10 +21,8 @@
|
||||
"scripts": {
|
||||
"fresh": "rm -rf node_modules; npm install",
|
||||
"dist": "script/dist.js",
|
||||
"lint": "npm-run-all -s stylelint eslint eslint-docs",
|
||||
"stylelint": "stylelint --quiet src",
|
||||
"eslint": "eslint script deprecations.js lib .storybook",
|
||||
"eslint-docs": "eslint docs/{content,src,*.js}",
|
||||
"eslint": "eslint deprecations.js lib",
|
||||
"prepublishOnly": "script/prepublish",
|
||||
"publish-storybook": "script/publish-storybook",
|
||||
"start": "npm run dev",
|
||||
@ -41,6 +39,7 @@
|
||||
"@primer/primitives": "^4.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/eslint-parser": "^7.13.10",
|
||||
"@changesets/changelog-github": "^0.3.0",
|
||||
"@changesets/cli": "^2.14.1",
|
||||
"@github/prettier-config": "^0.0.4",
|
||||
|
@ -1,5 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
npm run stylelint
|
||||
npm run stylelint -- --report-needless-disables
|
||||
npm run eslint
|
||||
npm run eslint-docs
|
17
yarn.lock
17
yarn.lock
@ -90,6 +90,15 @@
|
||||
semver "^5.4.1"
|
||||
source-map "^0.5.0"
|
||||
|
||||
"@babel/eslint-parser@^7.13.10":
|
||||
version "7.13.10"
|
||||
resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.13.10.tgz#e272979914f36bb6cea144c14c32bb51632696dd"
|
||||
integrity sha512-/I1HQ3jGPhIpeBFeI3wO9WwWOnBYpuR0pX0KlkdGcRQAVX9prB/FCS2HBpL7BiFbzhny1YCiBH8MTZD2jJa7Hg==
|
||||
dependencies:
|
||||
eslint-scope "5.1.0"
|
||||
eslint-visitor-keys "^1.3.0"
|
||||
semver "^6.3.0"
|
||||
|
||||
"@babel/generator@^7.11.5", "@babel/generator@^7.11.6":
|
||||
version "7.11.6"
|
||||
resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.11.6.tgz"
|
||||
@ -5347,6 +5356,14 @@ eslint-rule-documentation@>=1.0.0:
|
||||
resolved "https://registry.npmjs.org/eslint-rule-documentation/-/eslint-rule-documentation-1.0.22.tgz"
|
||||
integrity sha512-HVc7wTszrCcZli7BCnOnRH7vS8x9bBcenu74JTYVLjsMABvx65A/+wraWa4budF94j08/G6a9c/tbhgPyi3EYQ==
|
||||
|
||||
eslint-scope@5.1.0:
|
||||
version "5.1.0"
|
||||
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.0.tgz#d0f971dfe59c69e0cada684b23d49dbf82600ce5"
|
||||
integrity sha512-iiGRvtxWqgtx5m8EyQUJihBloE4EnYeGE/bz1wSPwJE6tZuJUtHlhqDM4Xj2ukE8Dyy1+HCZ4hE0fzIVMzb58w==
|
||||
dependencies:
|
||||
esrecurse "^4.1.0"
|
||||
estraverse "^4.1.1"
|
||||
|
||||
eslint-scope@^4.0.3:
|
||||
version "4.0.3"
|
||||
resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.3.tgz"
|
||||
|
Loading…
Reference in New Issue
Block a user