|
|
@@ -1,36 +1,38 @@
|
|
|
module.exports = {
|
|
|
- root: true,
|
|
|
- parserOptions: {
|
|
|
- parser: 'babel-eslint'
|
|
|
- },
|
|
|
- env: {
|
|
|
- browser: true,
|
|
|
- },
|
|
|
- // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
|
|
|
- extends: ['plugin:vue/vue3-essential'],
|
|
|
- // required to lint *.vue files
|
|
|
- plugins: [
|
|
|
- 'vue'
|
|
|
- ],
|
|
|
- // check if imports actually resolve
|
|
|
- settings: {
|
|
|
- 'import/resolver': {
|
|
|
- webpack: {
|
|
|
- config: 'build/webpack.base.conf.js'
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- // add your custom rules here
|
|
|
- rules: {
|
|
|
- // allow debugger during development
|
|
|
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
|
- 'no-console': 'off',
|
|
|
- 'no-plusplus': 'off',
|
|
|
- 'no-unused-vars': 'off',
|
|
|
- 'arrow-parens': 'off',
|
|
|
- 'no-restricted-syntax': 'off',
|
|
|
- 'linebreak-style': ["off", "windows"],
|
|
|
- "max-len": ["error", { code: 200 }],
|
|
|
- 'semi': ["error", "always"]
|
|
|
+ root: true,
|
|
|
+ parserOptions: {
|
|
|
+ parser: 'babel-eslint'
|
|
|
+ },
|
|
|
+ env: {
|
|
|
+ browser: true,
|
|
|
+ },
|
|
|
+ // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
|
|
|
+ extends: ['plugin:vue/vue3-essential'],
|
|
|
+ // required to lint *.vue files
|
|
|
+ plugins: [
|
|
|
+ 'vue'
|
|
|
+ ],
|
|
|
+ // check if imports actually resolve
|
|
|
+ settings: {
|
|
|
+ 'import/resolver': {
|
|
|
+ webpack: {
|
|
|
+ config: 'build/webpack.base.conf.js'
|
|
|
+ }
|
|
|
}
|
|
|
+ },
|
|
|
+ // add your custom rules here
|
|
|
+ rules: {
|
|
|
+ // allow debugger during development
|
|
|
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
|
+ 'no-console': 'off',
|
|
|
+ 'no-plusplus': 'off',
|
|
|
+ 'no-unused-vars': 'off',
|
|
|
+ 'arrow-parens': 'off',
|
|
|
+ 'no-restricted-syntax': 'off',
|
|
|
+ 'linebreak-style': ["off", "windows"],
|
|
|
+ "max-len": ["warn", { code: 500 }],
|
|
|
+ 'semi': ["error", "always"],
|
|
|
+ // 'comma-dangle': ["error", "always"],
|
|
|
+ // 'quotes': [1, "single"],
|
|
|
+ }
|
|
|
};
|