Skip to content

Commit ccbe289

Browse files
committed
Merge branch 'main' of https://github.com/itextc/itc-osx
2 parents 2592d67 + 08e5be6 commit ccbe289

File tree

182 files changed

+18353
-13053
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+18353
-13053
lines changed

.babelrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"targets": {
7+
"node": "current"
8+
}
9+
}
10+
],
11+
"@babel/preset-react"
12+
]
13+
}

.eslintignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Build outputs
2+
dist/
3+
build/
4+
release/
5+
6+
# Dependencies
7+
node_modules/
8+
9+
# Legacy Python files
10+
*.py
11+
requirements.txt
12+
13+
# Config files
14+
webpack.config.js
15+
16+
# Documentation
17+
*.md
18+
19+
# Resources
20+
resources/

.eslintrc.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
node: true,
6+
},
7+
extends: [
8+
'eslint:recommended',
9+
'plugin:react/recommended',
10+
'plugin:react-hooks/recommended',
11+
'prettier', // Must be last to override other configs
12+
],
13+
parserOptions: {
14+
ecmaVersion: 'latest',
15+
sourceType: 'module',
16+
ecmaFeatures: {
17+
jsx: true,
18+
},
19+
},
20+
plugins: ['react', 'react-hooks'],
21+
rules: {
22+
// React rules
23+
'react/react-in-jsx-scope': 'off', // Not needed in React 17+
24+
'react/prop-types': 'warn', // Warn about missing prop types
25+
'react/jsx-uses-react': 'off', // Not needed in React 17+
26+
27+
// General code quality
28+
'no-console': ['warn', { allow: ['warn', 'error'] }], // Allow console.warn and console.error
29+
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }], // Warn on unused vars
30+
'prefer-const': 'warn', // Prefer const over let when possible
31+
32+
// Best practices
33+
'eqeqeq': ['warn', 'always'], // Require === and !==
34+
'no-eval': 'error', // Disallow eval()
35+
'no-implied-eval': 'error', // Disallow implied eval()
36+
},
37+
settings: {
38+
react: {
39+
version: 'detect', // Automatically detect React version
40+
},
41+
},
42+
};

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ npm-debug.log*
99
yarn-debug.log*
1010
yarn-error.log*
1111

12+
# Testing
13+
coverage/
14+
1215
# Electron
1316
out/
1417

.prettierrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "es5",
4+
"singleQuote": true,
5+
"printWidth": 100,
6+
"tabWidth": 2,
7+
"useTabs": false,
8+
"arrowParens": "always",
9+
"endOfLine": "lf",
10+
"bracketSpacing": true,
11+
"jsxSingleQuote": false
12+
}

0 commit comments

Comments
 (0)