2020-04-02 17:34:00 +00:00
|
|
|
/** @format */
|
2020-09-15 17:08:19 +00:00
|
|
|
const { useE2EEsLintConfig } = require( '@woocommerce/e2e-environment' );
|
2020-04-02 17:34:00 +00:00
|
|
|
|
2020-09-15 17:08:19 +00:00
|
|
|
module.exports = useE2EEsLintConfig( {
|
2020-04-02 17:34:00 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
},
|
2020-09-15 17:08:19 +00:00
|
|
|
} );
|