Skip to content

Commit

Permalink
Upgrades ESLint in root (#4016)
Browse files Browse the repository at this point in the history
  • Loading branch information
walmazacn authored Nov 7, 2024
1 parent f1f3481 commit 3709fc6
Show file tree
Hide file tree
Showing 5 changed files with 1,854 additions and 770 deletions.
9 changes: 0 additions & 9 deletions .eslintrc

This file was deleted.

4 changes: 2 additions & 2 deletions code_quality.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ const fullEslint = async (filesByExtension) => {
console.log('Wrote eslint report to file ' + path.resolve(reportFile));
}
console.log(
"Eslint executed in ' + esLintResult.numberFiles + ' files. Results written in 'full_eslint_report.html' "
'Eslint executed in ' + esLintResult.numberFiles + ' files. Results written in "full_eslint_report.html"'
);
};

Expand Down Expand Up @@ -376,7 +376,7 @@ const getOptions = () => {
}

console.error(
'You need to pass application parameter -- mode=pre_commit|pre_commit-prettier|pre_commit-eslint|full|full-prettier|full-eslint'
'You need to pass application parameter -- mode=pre_commit|pre_commit_prettier|pre_commit_eslint|full|full-prettier|full-eslint'
);
})().catch((err) => {
console.log(err);
Expand Down
23 changes: 23 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import neostandard from 'neostandard';
import pluginCypress from 'eslint-plugin-cypress/flat';
import stylistic from '@stylistic/eslint-plugin';

/** @type {import('eslint').Linter.Config[]} */
export default [
...neostandard(),
pluginCypress.configs.recommended,
stylistic.configs['recommended-flat'],
{
files: ['**/*.js', '**/*.ts'],
plugins: {
cypress: pluginCypress,
'@stylistic': stylistic
},
rules: {
'no-ex-assign': 'warn',
'@stylistic/indent': 'off',
'@stylistic/no-tabs': 'off',
'@stylistic/semi': 'error'
}
}
];
Loading

0 comments on commit 3709fc6

Please sign in to comment.