Skip to content

Commit 61c114c

Browse files
authored
Merge pull request #34 from share/dependabot/npm_and_yarn/eslint-10.6.0
Bump eslint from 7.32.0 to 10.6.0
2 parents 0f5be03 + 7273675 commit 61c114c

2 files changed

Lines changed: 21 additions & 12 deletions

File tree

.eslintrc.js renamed to eslint.config.js

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
var google = require('eslint-config-google');
2+
13
// The ESLint ecmaVersion argument is inconsistently used. Some rules will ignore it entirely, so if the rule has
24
// been set, it will still error even if it's not applicable to that version number. Since Google sets these
35
// rules, we have to turn them off ourselves.
@@ -37,14 +39,21 @@ var SHAREDB_RULES = {
3739
'valid-jsdoc': 'off'
3840
};
3941

40-
module.exports = {
41-
extends: 'google',
42-
parserOptions: {
43-
ecmaVersion: 3
42+
module.exports = [
43+
{
44+
ignores: ['node_modules/**', 'coverage/**']
4445
},
45-
rules: Object.assign(
46-
{},
47-
DISABLED_ES6_OPTIONS,
48-
SHAREDB_RULES
49-
)
50-
};
46+
{
47+
files: ['**/*.js'],
48+
languageOptions: {
49+
ecmaVersion: 3,
50+
sourceType: 'commonjs'
51+
},
52+
rules: Object.assign(
53+
{},
54+
google.rules,
55+
DISABLED_ES6_OPTIONS,
56+
SHAREDB_RULES
57+
)
58+
}
59+
];

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
"devDependencies": {
1111
"chai": "^6.2.2",
1212
"coveralls": "^3.0.7",
13-
"eslint": "^7.23.0",
13+
"eslint": "^10.6.0",
1414
"eslint-config-google": "^0.14.0",
1515
"mocha": "^11.7.6",
1616
"nyc": "^18.0.0"
1717
},
1818
"scripts": {
19-
"lint": "./node_modules/.bin/eslint --ignore-path .gitignore '**/*.js'",
19+
"lint": "eslint .",
2020
"test": "mocha",
2121
"test-cover": "nyc --temp-dir=coverage -r text -r lcov npm test"
2222
},

0 commit comments

Comments
 (0)