summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorSam Light <sam@lightscale.co.uk>2025-03-30 15:54:18 +0100
committerSam Light <samlight1994@gmail.com>2025-03-30 15:54:18 +0100
commitca351a9c63bb52bf90322340b84fdb4612db67ec (patch)
tree046b4c5740b00fcd85a812bc06deeb6747e94ac6 /index.js
parent66809a20001188dfb7c449316798e365532a7245 (diff)
Updated config
Diffstat (limited to 'index.js')
-rw-r--r--index.js57
1 files changed, 22 insertions, 35 deletions
diff --git a/index.js b/index.js
index a76dadc..82bcdf7 100644
--- a/index.js
+++ b/index.js
@@ -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,
},
};