summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.js42
-rw-r--r--package.json9
2 files changed, 51 insertions, 0 deletions
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..a76dadc
--- /dev/null
+++ b/index.js
@@ -0,0 +1,42 @@
+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,
+ },
+ 'ecmaVersion': 2017,
+ 'sourceType': 'module',
+ 'requireConfigFile': false,
+ },
+ '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,
+ },
+};
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..d34cf1c
--- /dev/null
+++ b/package.json
@@ -0,0 +1,9 @@
+{
+ "name": "@lightscale/eslint-config",
+ "version": "1.0.0",
+ "description": "",
+ "license": "MIT",
+ "author": "Sam Light <sam@lightscale.co.uk>",
+ "type": "module",
+ "main": "index.js"
+}