In the. Eslintrc. JS file: close the rules for verifying hump naming (camelCase: ‘off’).
// eslintrc.js
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/essential',
'@vue/standard',
'@vue/typescript/recommended'
],
parserOptions: {
ecmaVersion: 2020
},
rules: {
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/member-delimiter-style': ['error',
{
multiline: {
delimiter: 'none'
},
singleline: {
delimiter: 'comma'
}
}],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
camelcase: 'off',
'no-console': process.env.NODE_ENV === 'production' ?'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ?'error' : 'off',
'space-before-function-paren': ['error', 'never'],
'vue/array-bracket-spacing': 'error',
'vue/arrow-spacing': 'error',
'vue/block-spacing': 'error',
'vue/brace-style': 'error',
'vue/camelcase': 'error',
'vue/comma-dangle': 'error',
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
'vue/eqeqeq': 'error',
'vue/key-spacing': 'error',
'vue/match-component-file-name': 'error',
'vue/object-curly-spacing': 'error'
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true
}
}
]
}
Read More:
- Eslint error “no undef” and eslint rule configuration in Vue cli3
- [Solved] Eslint error: /xxx/components/xxx import should occur after import of /xxx/utils/xxx
- Failed to register bundle identifier. The app identifier “xxx” cannot be registered to your developm
- [Solved] “Field pet in XXX.HelloController required a bean of type ‘XXX.Pet‘ that could not be found.“
- Vscode configures eslint to solve terminal syntax error
- [Solved] Could not resolve placeholder ‘XXX‘ in value “${XXX}“
- Vue Import Baidu map error: BMap is not defined, eslint BMap reports an error
- [Solved] Android Develop Error: xxx does not have a NavController set on xxx
- [Solved] error [email protected]: The engine “node” is incompatible with this module.
- [Solved] Unity Error: UnityException: Texture ‘XXX‘ is not readable
- [Solved] error:#20: identifier “HAL_StatusTypeDef“ is undefined.
- [Solved] Read file XXX /pom.xml Error when Maven is configured in idea
- React Hook “useState“ is called in function “xxx“ which is neither a React function component or
- [Solved] Error: e0020 does not define identifier “sleep”“
- [Solved] flitter Name Route Error: Could not find a generator for route RouteSettings(“XXX”, null) in the _WidgetsAppState
- Turn off eslint checksum and resolve formatting conflicts
- Parsing error in eslint parsing: unexpected token [How to Solve]
- [Solved] Unexpected error while saving file: xxx.ipynb database or disk is full
- [Solved] spring boot – JPA–H2 Error: H2 error: “Syntax error in SQL statement … expected identifier“
- [Solved] CMake Error: The current CMakeCache.txt directory is different than xxx