Skip to content

Commit 0043755

Browse files
Fix: React implementation, lint, and build to v25.1.3
1 parent 41f7b3b commit 0043755

File tree

11 files changed

+3057
-5221
lines changed

11 files changed

+3057
-5221
lines changed

React/.eslintrc.cjs

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1 @@
1-
module.exports = {
2-
root: true,
3-
extends: ['devextreme/spell-check'],
4-
overrides: [{
5-
files: ['*.ts', '*.tsx'],
6-
extends: ['devextreme/react'],
7-
env: {
8-
browser: true,
9-
es6: true
10-
},
11-
parserOptions: {
12-
project: './tsconfig.json',
13-
'createDefaultProgram': true,
14-
ecmaVersion: 2022,
15-
sourceType: 'module',
16-
},
17-
rules: {
18-
"react/react-in-jsx-scope": "off",
19-
"import/no-extraneous-dependencies": ["error", {
20-
"devDependencies": [
21-
"**/vitest.config.ts", // allow vitest in config file
22-
"**/vite.config.ts", // allow vite in config file
23-
"**/*.test.tsx", // allow test files if needed
24-
"**/setupTests.ts", // allow setup tests file
25-
]
26-
}]
27-
},
28-
globals: {
29-
System: false,
30-
AzureGateway: false,
31-
AzureFileSystem: false,
32-
},
33-
settings: {
34-
react: {
35-
createClass: 'createReactClass',
36-
'pragma': 'React',
37-
version: '18.2',
38-
},
39-
propWrapperFunctions: [
40-
'forbidExtraProps',
41-
],
42-
},
43-
}]
44-
};
1+
module.exports = {root:true,env:{browser:true,es2020:true},extends:["eslint:recommended","plugin:@typescript-eslint/recommended","plugin:react-hooks/recommended"],ignorePatterns:["dist",".eslintrc.cjs"],parser:"@typescript-eslint/parser",plugins:["react-refresh","@typescript-eslint"],rules:{"react-refresh/only-export-components":["warn",{allowConstantExport:true}],"@typescript-eslint/indent":["error",2],"@typescript-eslint/semi":["error","always"],"@typescript-eslint/member-delimiter-style":["error",{multiline:{delimiter:"semi",requireLast:true},singleline:{delimiter:"semi",requireLast:false}}],"@typescript-eslint/quotes":["error","single"],"@typescript-eslint/comma-dangle":["error","always-multiline"],"linebreak-style":["error","windows"],"space-before-function-paren":"off","@typescript-eslint/space-before-function-paren":"off","@typescript-eslint/func-call-spacing":"off","no-spaced-func":"off","@typescript-eslint/method-signature-style":"off","no-unused-vars":"off","@typescript-eslint/no-unused-vars":["error",{"argsIgnorePattern":"^_"}]}}

React/.stylelintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = {extends:["stylelint-config-standard"],rules:{"selector-class-pattern":null,"font-family-name-quotes":null,"keyframes-name-pattern":null,"rule-empty-line-before":null}}

0 commit comments

Comments
 (0)