Created
October 18, 2019 03:34
-
-
Save naranjja/44f38acfa0fc2378c032663297cf1b53 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
root: true, | |
env: { | |
browser: true, | |
node: true, | |
commonjs: true, | |
es6: true, | |
}, | |
parserOptions: { | |
parser: "babel-eslint", | |
ecmaVersion: 2018, | |
}, | |
extends: [ | |
"eslint:recommended", | |
"@nuxtjs", | |
"plugin:nuxt/recommended" | |
], | |
rules: { | |
"nuxt/no-cjs-in-config": "off", | |
"no-prototype-builtins": "off", | |
"no-self-assign": "off", | |
"prefer-const": "error", | |
"prefer-arrow-callback": "error", | |
"space-infix-ops": "error", | |
"operator-linebreak": ["error", "before"], | |
"operator-assignment": "error", | |
"template-curly-spacing": ["error", "always"], | |
"prefer-template": "error", | |
"no-confusing-arrow": "off", | |
"no-unneeded-ternary": "error", | |
"no-multiple-empty-lines": "error", | |
"no-lonely-if": "error", | |
"computed-property-spacing": ["error", "never"], | |
"arrow-parens": ["error", "as-needed"], | |
"arrow-body-style": ["error", "as-needed"], | |
"func-call-spacing": ["error", "never"], | |
"comma-style": "error", | |
"comma-spacing": "error", | |
"comma-dangle": ["error", "always-multiline"], | |
"camelcase": "off", | |
"brace-style": ["error", "1tbs", { "allowSingleLine": true }], | |
"array-element-newline": ["error", { | |
"multiline": true, | |
"minItems": 5 | |
}], | |
"array-bracket-spacing": ["error", "always", { | |
"singleValue": false, | |
"objectsInArrays": false, | |
"arraysInArrays": false | |
}], | |
"global-require": "off", | |
"yoda": "error", | |
"no-undefined": "off", | |
"no-undef-init": "error", | |
"no-shadow": "warn", | |
"init-declarations": "warn", | |
"wrap-iife": "error", | |
"vars-on-top": "error", | |
"no-useless-return": "error", | |
"no-useless-concat": "error", | |
"no-unused-expressions": "error", | |
"no-self-compare": "error", | |
"no-multi-spaces": "error", | |
"no-magic-numbers": "off", | |
"no-implicit-coercion": "warn", | |
"no-floating-decimal": "warn", | |
"no-fallthrough": "warn", | |
"no-extra-bind": "error", | |
"no-eq-null": "error", | |
"no-empty-pattern": "error", | |
"no-empty-function": "warn", | |
"no-else-return": "error", | |
"eqeqeq": "warn", | |
"dot-notation": "warn", | |
"default-case": "error", | |
"consistent-return": "error", | |
"block-scoped-var": "error", | |
"object-curly-spacing": ["error", "always"], | |
"keyword-spacing": "error", | |
"block-spacing": ["error", "always"], | |
"indent": ["error", "tab"], | |
"no-tabs": ["error", { "allowIndentationTabs": true }], | |
"linebreak-style": ["error", "unix"], | |
"quotes": ["error", "double"], | |
"semi": ["error", "always"], | |
"no-console": "off", | |
"no-unused-vars": ["error", { "argsIgnorePattern": "^ _" }], | |
"no-undef": "off", | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment