Skip to content

Commit d1d63ec

Browse files
committed
Improve linting of .eslintrc.js itself
1 parent 894789e commit d1d63ec

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.eslintrc.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable max-lines */
21
module.exports = {
32
parser: 'babel-eslint',
43
plugins: ['prettier', 'markdown', 'html'],
@@ -168,6 +167,13 @@ module.exports = {
168167
'fp/no-delete': 0,
169168
},
170169
},
170+
{
171+
files: ['.*.js'],
172+
rules: {
173+
'no-magic-numbers': 0,
174+
'node/no-unpublished-require': 0,
175+
},
176+
},
171177
{
172178
files: ['scripts/**/*.js'],
173179
rules: {
@@ -192,4 +198,3 @@ module.exports = {
192198
},
193199
},
194200
}
195-
/* eslint-enable max-lines */

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"test:ci:ava": "nyc -r lcovonly -r text -r json ava"
2525
},
2626
"scriptsArgs": {
27-
"eslint": "--ignore-path .gitignore --cache --format=codeframe --max-warnings=0 \"{scripts,.github}/**/*.{js,md,html}\"",
27+
"eslint": "--ignore-path .gitignore --cache --format=codeframe --max-warnings=0 \"{scripts,.github}/**/*.{js,md,html}\" \".*.js\"",
2828
"prettier": "--ignore-path .gitignore --loglevel=warn \"{scripts,.github}/**/*.{js,md,yml,json,html}\" \"*.{js,yml,json,html}\" \"!**/package-lock.json\" \"!package-lock.json\""
2929
},
3030
"husky": {

0 commit comments

Comments
 (0)