mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-21 20:08:51 +08:00
Dependency updates + full ESM (#327)
* Dependency updates * Fix eslint issues * Switch to esm fully * Fix Jest tests * Update to node 16, force mini-css-extract-plugin to 1.x * More dep updates * Use correct NPM version in Actions * Fix mini-css-extract-plugin version overrides * Don't rely on Webpack for available languages
This commit is contained in:
committed by
GitHub
parent
26e907bd81
commit
387a47b014
39
.eslintrc.cjs
Normal file
39
.eslintrc.cjs
Normal file
@@ -0,0 +1,39 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
'browser': true,
|
||||
'node': true,
|
||||
},
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:vue/recommended',
|
||||
],
|
||||
parserOptions: {
|
||||
parser: '@babel/eslint-parser',
|
||||
ecmaVersion: 2018,
|
||||
sourceType: 'module',
|
||||
requireConfigFile: false,
|
||||
},
|
||||
rules: {
|
||||
'linebreak-style': ['error', 'unix'],
|
||||
semi: ['error', 'always'],
|
||||
quotes: ['error', 'single'],
|
||||
'comma-dangle': ['error', 'always-multiline'],
|
||||
'vue/require-v-for-key': 0,
|
||||
'vue/require-default-prop': 0,
|
||||
'vue/no-v-html': 0,
|
||||
'vue/max-attributes-per-line': 0,
|
||||
'vue/html-indent': ['error', 4],
|
||||
'vue/script-indent': ['error', 4, {
|
||||
baseIndent: 1,
|
||||
}],
|
||||
'vue/no-unused-vars': 0,
|
||||
'vue/html-self-closing': 0,
|
||||
'vue/multi-word-component-names': 0,
|
||||
},
|
||||
globals: {
|
||||
'describe': true,
|
||||
'expect': true,
|
||||
'it': true,
|
||||
'test': true,
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user