1- /* eslint-disable import/no-commonjs */
21module . exports = {
3- extends : [
4- require . resolve ( 'eslint-config-google' ) ,
5- require . resolve ( 'eslint-config-node' ) ,
6- ] ,
7- parser : 'babel-eslint' ,
82 parserOptions : {
93 sourceType : 'module' ,
10- ecmaVersion : 8 ,
4+ ecmaVersion : 9 ,
115 } ,
126 env : {
137 browser : false ,
148 mocha : true ,
159 node : true ,
1610 es6 : true ,
1711 } ,
18- plugins : [
19- 'no-only-tests' ,
20- 'babel' ,
21- 'import' ,
22- ] ,
2312 overrides : [
2413 {
2514 files : [
@@ -49,26 +38,6 @@ module.exports = {
4938 ] ,
5039 'lines-between-class-members' : 'error' ,
5140 'no-underscore-dangle' : 'off' ,
52- 'no-only-tests/no-only-tests' : 'error' ,
53- 'import/extensions' : [
54- 'error' ,
55- 'always' ,
56- {
57- ignorePackages : true ,
58- } ,
59- ] ,
60- 'import/prefer-default-export' : 'off' ,
61- 'import/no-nodejs-modules' : 'off' ,
62- 'import/no-extraneous-dependencies' : [
63- 'error' ,
64- {
65- 'devDependencies' : [
66- '**/test/**/*.js' ,
67- '**/*.config.js' ,
68- '**/*.conf.js' ,
69- ] ,
70- } ,
71- ] ,
7241 'class-methods-use-this' : [
7342 // this is unnecessary for node apps.
7443 'off' ,
@@ -86,7 +55,7 @@ module.exports = {
8655 FunctionExpression : true ,
8756 } ,
8857 } ] ,
89- 'comma-dangle' : 'warn' ,
58+ // 'comma-dangle': 'warn',
9059 'new-cap' : [
9160 'error' ,
9261 {
@@ -108,7 +77,6 @@ module.exports = {
10877 'error' ,
10978 ] ,
11079 'no-unused-expressions' : 'error' ,
111- 'babel/no-unused-expressions' : 'error' ,
11280 'prefer-template' : 'error' ,
11381 'no-return-await' : 'error' ,
11482 'no-template-curly-in-string' : 'error' ,
0 commit comments