Skip to content

Commit

Permalink
convert to flat file format
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed May 24, 2024
1 parent ef59095 commit 48bd18f
Show file tree
Hide file tree
Showing 10 changed files with 437 additions and 481 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"ecmaVersion": 2022,
"sourceType": "module"
},
"extends": ["./eslint-config-cityssm.js"]
"extends": ["./eslint.config.js"]
}
69 changes: 0 additions & 69 deletions eslint-config-cityssm.d.ts

This file was deleted.

145 changes: 0 additions & 145 deletions eslint-config-cityssm.ts

This file was deleted.

70 changes: 30 additions & 40 deletions eslint-config-cityssm.js → eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,44 +1,34 @@
/* eslint-disable unicorn/filename-case, unicorn/prefer-module, eslint-comments/disable-enable-pair */
module.exports = {
root: true,
env: {
es6: true
import eslint from '@eslint/js';
import eslintConfigLove from 'eslint-config-love';
import eslintPluginJsdoc from 'eslint-plugin-jsdoc';
import eslintPluginNoSecrets from 'eslint-plugin-no-secrets';
import eslintPluginNoUnsanitized from 'eslint-plugin-no-unsanitized';
import * as eslintPluginRegexp from 'eslint-plugin-regexp';
import eslintPluginSecurity from 'eslint-plugin-security';
import eslintPluginSonarjs from 'eslint-plugin-sonarjs';
import eslintPluginUnicorn from 'eslint-plugin-unicorn';
import tseslint from 'typescript-eslint';
export default tseslint.config(
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
eslint.configs.recommended, ...tseslint.configs.recommended, eslintPluginJsdoc.configs['flat/recommended-typescript'], eslintPluginRegexp.configs['flat/recommended'],
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
eslintPluginSecurity.configs.recommended,
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
eslintPluginSonarjs.configs.recommended,
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
eslintPluginUnicorn.configs['flat/recommended'], eslintConfigLove, {
languageOptions: {
parserOptions: {
ecmaFeatures: { modules: true },
ecmaVersion: 2022,
project: ['./tsconfig.json'],
sourceType: 'module'
}
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['./tsconfig.json'],
ecmaVersion: 2022,
sourceType: 'module'
plugins: {
'no-secrets': eslintPluginNoSecrets,
'no-unsanitized': eslintPluginNoUnsanitized
},
plugins: [
'@typescript-eslint',
'eslint-comments',
'import',
'jsdoc',
'n',
'no-secrets',
'no-unsanitized',
'regexp',
'security',
'sonarjs',
'unicorn'
],
extends: [
'eslint:recommended',
'love',
'plugin:eslint-comments/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:jsdoc/recommended',
'plugin:n/recommended',
'plugin:no-unsanitized/DOM',
'plugin:promise/recommended',
'plugin:regexp/recommended',
'plugin:security/recommended-legacy',
'plugin:sonarjs/recommended-legacy',
'plugin:unicorn/recommended',
'plugin:@typescript-eslint/recommended'
],
rules: {
'@typescript-eslint/member-delimiter-style': [
'error',
Expand Down Expand Up @@ -132,4 +122,4 @@ module.exports = {
}
]
}
};
});
Loading

0 comments on commit 48bd18f

Please sign in to comment.