Skip to content

Instantly share code, notes, and snippets.

@hrsetyono
Created January 30, 2022 14:30
Show Gist options
  • Save hrsetyono/7dd16346767b81ba992ee8e84ad6aca7 to your computer and use it in GitHub Desktop.
Save hrsetyono/7dd16346767b81ba992ee8e84ad6aca7 to your computer and use it in GitHub Desktop.
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