Skip to content

Commit

Permalink
IBX-9109: Added support for TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasOsti committed Oct 18, 2024
1 parent edf236a commit bc1b3e3
Show file tree
Hide file tree
Showing 3 changed files with 1,740 additions and 3 deletions.
9 changes: 6 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
plugins: ["react"],
extends: ["eslint:recommended", "plugin:react/recommended"],
files: ["**/*.ts", "**/*.tsx"],
plugins: ["react", "@typescript-eslint"],
extends: ["eslint:recommended", "plugin:react/recommended", "plugin:@typescript-eslint/recommended"],
settings: {
react: {
version: "16.x"
Expand Down Expand Up @@ -70,6 +71,8 @@ module.exports = {
"react/no-typos": "error",
"react/require-default-props": "error",
"react/self-closing-comp": "error",
"react/style-prop-object": "error"
"react/style-prop-object": "error",
"@typescript-eslint/no-require-imports": "off",
"react/require-default-props": "off"
}
};
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"repository": "git@github.com:ibexa/eslint-config-ibexa.git",
"private": true,
"dependencies": {
"@typescript-eslint/eslint-plugin": "^8.10.0",
"@typescript-eslint/parser": "^8.10.0",
"eslint": "8.55",
"eslint-plugin-react": "7.33.2",
"prettier": "3.1"
Expand Down
Loading

0 comments on commit bc1b3e3

Please sign in to comment.