Skip to content

Commit

Permalink
[TECH]: migrate eslint to 9v
Browse files Browse the repository at this point in the history
  • Loading branch information
NastaLeo committed Sep 26, 2024
1 parent fc285f3 commit 98ccc90
Show file tree
Hide file tree
Showing 4 changed files with 3,226 additions and 1,221 deletions.
27 changes: 0 additions & 27 deletions ui.apps/.eslintrc.json

This file was deleted.

51 changes: 51 additions & 0 deletions ui.apps/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
const neostandard = require('neostandard');
const globals = require('globals');
const stylistic = require('@stylistic/eslint-plugin');

module.exports = [
...neostandard(),
{
files: ['**/*.js'],
rules: {
'no-new-func': 'off',
'no-useless-call': 'off'
},
languageOptions: {
ecmaVersion: 2017,
sourceType: 'module',
parserOptions: {
projectService: true
},
globals: {
...globals.jquery,
'Granite': 'writable',
'Coral': 'readonly'
}
},
linterOptions: {
reportUnusedDisableDirectives: 'warn'
}
},
{
plugins: {
'@stylistic': stylistic
},
rules: {
'@stylistic/indent': [
'error', 4, {
'SwitchCase': 1
}
],
'@stylistic/operator-linebreak': [2, 'after'],
'@stylistic/semi': [1, 'always'],
'@stylistic/space-before-function-paren': [
'error',
{
'anonymous': 'always',
'named': 'never',
'asyncArrow': 'never'
}
]
}
}
];
Loading

0 comments on commit 98ccc90

Please sign in to comment.