diff options
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..2748b98 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,43 @@ +module.exports = { + 'root': true, + 'extends': [ + 'eslint:recommended' + ], + 'globals': { + 'wp': true, + }, + 'env': { + 'node': true, + 'es6': true, + 'amd': true, + 'browser': true, + 'jquery': true, + }, + 'parser': '@babel/eslint-parser', + 'parserOptions': { + 'ecmaFeatures': { + 'globalReturn': true, + 'generators': false, + 'objectLiteralDuplicateProperties': false, + 'experimentalObjectRestSpread': true, + }, + 'ecmaVersion': 2017, + 'sourceType': 'module', + }, + 'plugins': [ + + ], + 'settings': { + 'import/core-modules': [], + 'import/ignore': [ + 'node_modules', + '\\.(coffee|scss|css|less|hbs|svg|json)$', + ] + }, + 'rules': { + 'no-console': 0, + 'quotes': ['error', 'single'], + 'semi': ['warn', 'always'], + 'comma-dangle': 0, + }, +}; |