mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-01 10:21:22 +01:00
linter setup
This commit is contained in:
1 parent
896373d998
commit
0fbd7cf506
5 files changed
+1979
-31
No files matched your search
+9
-14
@@ -1,28 +1,23 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
|
||||
env: {
|
||||
browser: true,
|
||||
node: true,
|
||||
node: true,
|
||||
browser: true,
|
||||
},
|
||||
|
||||
parserOptions: {
|
||||
parser: '@babel/eslint-parser',
|
||||
requireConfigFile: false,
|
||||
ecmaVersion: 2020
|
||||
parser: 'babel-eslint',
|
||||
},
|
||||
extends: [
|
||||
'plugin:vue/essential',
|
||||
'plugin:nuxt/recommended',
|
||||
'prettier/vue',
|
||||
'eslint:recommended',
|
||||
'plugin:vue/recommended',
|
||||
'plugin:prettier/recommended',
|
||||
'eslint:recommended', //
|
||||
'@vue/prettier',
|
||||
'prettier',
|
||||
'@nuxtjs',
|
||||
],
|
||||
plugins: ['vue'],
|
||||
rules: {
|
||||
// semi: [2, 'never'],
|
||||
// 'prettier/prettier': ['error', { semi: false }],
|
||||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||
},
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user