diff options
author | Sam Light <sam@lightscale.co.uk> | 2025-03-30 15:54:18 +0100 |
---|---|---|
committer | Sam Light <samlight1994@gmail.com> | 2025-03-30 15:54:18 +0100 |
commit | ca351a9c63bb52bf90322340b84fdb4612db67ec (patch) | |
tree | 046b4c5740b00fcd85a812bc06deeb6747e94ac6 /index.js | |
parent | 66809a20001188dfb7c449316798e365532a7245 (diff) |
Updated config
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 57 |
1 files changed, 22 insertions, 35 deletions
@@ -1,42 +1,29 @@ +import babelParser from '@babel/eslint-parser'; +import globals from 'globals'; + export default { - '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, + languageOptions: { + globals: { + ...globals.browser + }, + parser: babelParser, + parserOptions: { + ecmaFeatures: { + globalReturn: true, + generators: false, + objectLiteralDuplicateProperties: false, + experimentalObjectRestSpread: true, + }, + ecmaVersion: 2017, + sourceType: 'module', + requireConfigFile: false, }, - 'ecmaVersion': 2017, - 'sourceType': 'module', - 'requireConfigFile': false, - }, - 'plugins': [], - 'settings': { - 'import/core-modules': [], - 'import/ignore': [ - 'node_modules', - '\\.(coffee|scss|css|less|hbs|svg|json)$', - ] }, - 'rules': { + + rules: { 'no-console': 0, - 'quotes': ['error', 'single'], - 'semi': ['warn', 'always'], + quotes: ['error', 'single'], + semi: ['warn', 'always'], 'comma-dangle': 0, }, }; |