mirror of
https://github.com/directus/directus.git
synced 2026-01-29 12:58:00 -05:00
* Bump prettier from 1.19.1 to 2.0.2 Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.0.2. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/1.19.1...2.0.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Add dangling comma's * Update eslint config to match prettier default * Make eslint match prettier for real this time Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
47 lines
1.1 KiB
JavaScript
47 lines
1.1 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
},
|
|
extends: [
|
|
'plugin:vue/essential',
|
|
'@vue/typescript/recommended',
|
|
'@vue/prettier',
|
|
'@vue/prettier/@typescript-eslint',
|
|
],
|
|
rules: {
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
'prettier/prettier': ['error', { singleQuote: true }],
|
|
'@typescript-eslint/camelcase': 0,
|
|
'@typescript-eslint/no-use-before-define': 0,
|
|
'@typescript-eslint/ban-ts-ignore': 0,
|
|
'comma-dangle': [
|
|
'error',
|
|
{
|
|
arrays: 'always-multiline',
|
|
exports: 'always-multiline',
|
|
functions: 'never',
|
|
imports: 'always-multiline',
|
|
objects: 'always-multiline',
|
|
},
|
|
],
|
|
},
|
|
parserOptions: {
|
|
parser: '@typescript-eslint/parser',
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['**/*.test.{js,ts}?(x)', '**/*.story.{js,ts}?(x)'],
|
|
env: {
|
|
jest: true,
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 0,
|
|
'@typescript-eslint/no-empty-function': 0,
|
|
'@typescript-eslint/no-non-null-assertion': 0,
|
|
},
|
|
},
|
|
],
|
|
};
|