Skip to content

Commit 4cbe6b3

Browse files
committed
legacy v8 should keep old filenames
1 parent 97908fc commit 4cbe6b3

File tree

5 files changed

+3526
-4
lines changed

5 files changed

+3526
-4
lines changed

lib/configs/recommended.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
env: {
99
es6: true,
1010
},
11-
plugins: ['github', 'prettier', 'eslint-comments', 'import', 'i18n-text', 'no-only-tests'],
11+
plugins: ['github', 'prettier', 'eslint-comments', 'import', 'filenames', 'i18n-text', 'no-only-tests'],
1212
rules: {
1313
'constructor-super': 'error',
1414
'eslint-comments/disable-enable-pair': 'off',
@@ -18,7 +18,7 @@ module.exports = {
1818
'eslint-comments/no-unused-disable': 'error',
1919
'eslint-comments/no-unused-enable': 'error',
2020
'eslint-comments/no-use': ['error', {allow: ['eslint', 'eslint-disable-next-line', 'eslint-env', 'globals']}],
21-
'github/filenames-match-regex': ['error', '^[a-z0-9-]+(.[a-z0-9-]+)?$'],
21+
'filenames/match-regex': ['error', '^[a-z0-9-]+(.[a-z0-9-]+)?$'],
2222
'func-style': ['error', 'declaration', {allowArrowFunctions: true}],
2323
'github/array-foreach': 'error',
2424
'github/no-implicit-buggy-globals': 'error',

package-lock.json

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"eslint-config-prettier": ">=8.0.0",
4040
"eslint-plugin-escompat": "^3.11.3",
4141
"eslint-plugin-eslint-comments": "^3.2.0",
42+
"eslint-plugin-filenames": "^1.3.2",
4243
"eslint-plugin-i18n-text": "^1.0.1",
4344
"eslint-plugin-import": "^2.25.2",
4445
"eslint-plugin-jsx-a11y": "^6.7.1",

0 commit comments

Comments
 (0)