-
-
Save hrsetyono/7dd16346767b81ba992ee8e84ad6aca7 to your computer and use it in GitHub Desktop.
wpTips.dev ESLint
This file contains 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
{ | |
"root": true, | |
"env": { | |
"node": true, | |
"browser": true, | |
"es6": true, | |
"jest/globals": true | |
}, | |
"extends": [ | |
"airbnb-base", | |
"plugin:vue/recommended" | |
], | |
"parserOptions": { | |
"parser": "babel-eslint" | |
}, | |
"plugins": [ | |
"jest" | |
], | |
"rules": { | |
"max-len": 0, | |
"linebreak-style": 0, | |
"no-alert": "off", | |
"no-param-reassign": [2, { "props": false }], | |
"no-underscore-dangle": 0, | |
"prefer-destructuring": [ | |
"error", | |
{ | |
"VariableDeclarator": { | |
"array": false, | |
"object": true | |
}, | |
"AssignmentExpression": { | |
"array": false, | |
"object": false | |
} | |
}, | |
{ | |
"enforceForRenamedProperties": false | |
} | |
], | |
"vue/max-attributes-per-line": ["error", { | |
"singleline": 2, | |
"multiline": 2 | |
}], | |
"jest/no-disabled-tests": "warn", | |
"jest/no-focused-tests": "error", | |
"jest/no-identical-title": "error", | |
"jest/prefer-to-have-length": "warn", | |
"jest/valid-expect": "error" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment