File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ ] ;
Original file line number Diff line number Diff line change 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 },
You can’t perform that action at this time.
0 commit comments