Skip to content

Commit

Permalink
[EAK-550] ESLint: migrate eslint to 9v for ui.apps (#551)
Browse files Browse the repository at this point in the history
Closes: #550
  • Loading branch information
NastaLeo authored Sep 30, 2024
1 parent fc285f3 commit 38a7ffe
Show file tree
Hide file tree
Showing 4 changed files with 3,220 additions and 1,221 deletions.
27 changes: 0 additions & 27 deletions ui.apps/.eslintrc.json

This file was deleted.

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

module.exports = [
...neostandard(),
{
files: ['**/*.js'],
rules: {
'no-new-func': 'off',
'no-useless-call': 'off'
},
languageOptions: {
ecmaVersion: 2017,
sourceType: 'module',
parserOptions: {
projectService: true
},
globals: {
'$': 'readonly',
'jQuery': 'readonly',
'Granite': 'writable',
'Coral': 'readonly'
}
},
linterOptions: {
reportUnusedDisableDirectives: 'warn'
}
},
{
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 38a7ffe

Please sign in to comment.