mirror of
https://github.com/frappe/books.git
synced 2024-11-09 23:30:56 +00:00
4415c04a88
- refactor code to satisfy rules (batch 1) - use ensuredir in build to prevent ENOENT
33 lines
1020 B
JavaScript
33 lines
1020 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
browser: true,
|
|
es2020: true,
|
|
},
|
|
rules: {
|
|
'no-console': 'warn',
|
|
'no-debugger': 'warn',
|
|
'arrow-body-style': 'off',
|
|
'prefer-arrow-callback': 'warn',
|
|
'vue/no-mutating-props': 'off',
|
|
'vue/multi-word-component-names': 'off',
|
|
'vue/no-useless-template-attributes': 'off',
|
|
'vue/one-component-per-file': 'off',
|
|
'@typescript-eslint/ban-ts-comment': 'off',
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
'@typescript-eslint/no-floating-promises': 'off',
|
|
'@typescript-eslint/no-misused-promises': 'off',
|
|
},
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: { project: true, tsconfigRootDir: __dirname },
|
|
plugins: ['@typescript-eslint'],
|
|
extends: [
|
|
'plugin:vue/vue3-strongly-recommended',
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
],
|
|
ignorePatterns: ['.eslintrc.js'],
|
|
};
|