Skip to content

Instantly share code, notes, and snippets.

@hrsetyono
Created Jan 30, 2022
Embed
What would you like to do?
wpTips.dev ESLint
{
"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