nginxconfig.io/.eslintrc.js
墨娘 d1bf984d0b
Add unit testing for browser language (#197)
* Add unit testing

* Update unit testing

* Update unit testing

* fix a big heap of formatting typo
2020-12-22 17:06:52 +00:00

37 lines
813 B
JavaScript

module.exports = {
env: {
'browser': true,
'node': true,
},
extends: [
'eslint:recommended',
'plugin:vue/recommended',
],
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 2018,
sourceType: 'module',
},
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,
},
globals: {
'describe': true,
'expect': true,
'it': true,
'test': true,
},
};