Skip to content

Commit

Permalink
update configs
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffGreiner-eaton committed Oct 24, 2024
1 parent 3299260 commit 9f07661
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 32 deletions.
2 changes: 1 addition & 1 deletion eslint-config/blui-rules.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
module.exports = {
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
'@typescript-eslint/explicit-function-return-type': 'error',
Expand Down
10 changes: 5 additions & 5 deletions eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@
"prettier": "prettier \"**/**.{ts,tsx,js,jsx,json,css,scss,html,md}\" --write"
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": "^8.10.0",
"eslint": ">= 9.12.0",
"typescript": "5.5.4"
},
"dependencies": {
"@eslint/js": "^9.13.0",
"typescript-eslint": "^8.11.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-config-prettier":"^9.1.0",
"@typescript-eslint/parser": "^8.10.0",
"eslint-config-prettier": ">= 9.1.0"
"eslint": ">= 9.12.0"
},
"optionalDependencies": {
"eslint-plugin-react": "^7.37.1"
Expand All @@ -51,8 +53,6 @@
"prettier": "@brightlayer-ui/prettier-config",
"devDependencies": {
"@brightlayer-ui/prettier-config": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^8.10.0",
"eslint": ">= 9.12.0",
"eslint-plugin-react": "^7.37.1",
"prettier": "3.2.5",
"typescript": "5.5.4"
Expand Down
21 changes: 21 additions & 0 deletions eslint-config/ts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const js = require('@eslint/js');
const tseslint = require('typescript-eslint');
const prettierRecommended = require('eslint-plugin-prettier/recommended');
const typescriptEslintParser = require('@typescript-eslint/parser');
const bluiRules = require('./blui-rules.js');

module.exports = [
js.configs.recommended,
tseslint.configs.eslintRecommended,
...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.stylisticTypeChecked,
prettierRecommended,
{
languageOptions: {
parser: typescriptEslintParser
},
rules: {
...bluiRules
},
}
];
19 changes: 0 additions & 19 deletions eslint-config/ts.mjs

This file was deleted.

14 changes: 7 additions & 7 deletions eslint-config/tsx.mjs → eslint-config/tsx.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import js from "@eslint/js";
import reactRecommened from "eslint-plugin-react/configs/recommended.js"
import tseslint from "typescript-eslint";
import prettierRecommended from "eslint-plugin-prettier/recommended";
import typescriptEslintParser from "@typescript-eslint/parser";
import bluiRules from './blui-rules.js'
const js = require('@eslint/js');
const reactRecommened = require('eslint-plugin-react/configs/recommended.js');
const tseslint = require('typescript-eslint');
const prettierRecommended = require('eslint-plugin-prettier/recommended');
const typescriptEslintParser = require('@typescript-eslint/parser');
const bluiRules = require('./blui-rules.js');

export default [
module.exports = [
js.configs.recommended,
tseslint.configs.eslintRecommended,
...tseslint.configs.recommendedTypeChecked,
Expand Down

0 comments on commit 9f07661

Please sign in to comment.