34 lines
546 B
JavaScript
34 lines
546 B
JavaScript
/** @format */
|
|
|
|
const { useE2EEsLintConfig } = require( './tests/e2e/env/config/use-config' );
|
|
|
|
module.exports = useE2EEsLintConfig( {
|
|
root: true,
|
|
env: {
|
|
browser: true,
|
|
es6: true,
|
|
node: true
|
|
},
|
|
globals: {
|
|
wp: true,
|
|
wpApiSettings: true,
|
|
wcSettings: true,
|
|
es6: true
|
|
},
|
|
rules: {
|
|
camelcase: 0,
|
|
indent: 0,
|
|
'max-len': [ 2, { 'code': 140 } ],
|
|
'no-console': 1
|
|
},
|
|
parser: 'babel-eslint',
|
|
parserOptions: {
|
|
ecmaVersion: 8,
|
|
ecmaFeatures: {
|
|
modules: true,
|
|
experimentalObjectRestSpread: true,
|
|
jsx: true
|
|
}
|
|
},
|
|
} );
|