Last active
June 14, 2021 06:53
-
-
Save heycqing/7735bf9ac518307ba58500b815773258 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| module.exports = { | |
| env: { | |
| browser: true, | |
| es6: true, | |
| }, | |
| extends: [ | |
| 'eslint:recommended', | |
| 'airbnb-base', | |
| 'plugin:prettier/recommended', | |
| 'plugin:vue/essential', | |
| ], | |
| globals: { | |
| Atomics: 'readonly', | |
| SharedArrayBuffer: 'readonly', | |
| uni: true, | |
| require: true, | |
| process: true, | |
| module: true, | |
| }, | |
| parserOptions: { | |
| parser: 'babel-eslint', | |
| ecmaVersion: 2018, | |
| sourceType: 'module', | |
| }, | |
| plugins: ['vue', 'prettier'], | |
| rules: { | |
| 'prettier/prettier': [ | |
| 'error', | |
| { | |
| endOfLine: 'auto', | |
| singleQuote: true, | |
| semi: false, | |
| eslintIntegration: true, | |
| }, | |
| ], | |
| // airbnb | |
| 'import/no-unresolved': 'off', | |
| 'import/extensions': 'off', | |
| 'import/no-extraneous-dependencies': 'off', | |
| 'import/prefer-default-export': 'off', | |
| // 不识别window或者unix内核系统的行结尾 | |
| 'linebreak-style': ['off'], | |
| 'no-async-promise-executor': ['off'], | |
| 'no-mixed-spaces-and-tabs': ['warn', 'smart-tabs'], | |
| 'react/prop-types': ['off'], | |
| 'no-empty': ['error', { allowEmptyCatch: true }], | |
| camelcase: ['off'], | |
| 'no-nested-ternary': ['warn'], | |
| 'no-plusplus': ['off'], | |
| radix: ['off'], | |
| 'prefer-promise-reject-errors': ['warn', { allowEmptyReject: true }], | |
| 'no-trailing-spaces': [ | |
| 'error', | |
| { skipBlankLines: true, ignoreComments: true }, | |
| ], | |
| 'comma-dangle': ['error', 'only-multiline'], | |
| 'class-methods-use-this': ['warn'], | |
| semi: ['error', 'never'], | |
| // vue | |
| 'vue/v-bind-style': ['off'], | |
| 'vue/no-v-for-template-key': ['off'], | |
| }, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment