Skip to content

Commit

Permalink
improve config
Browse files Browse the repository at this point in the history
  • Loading branch information
agargaro committed Nov 26, 2024
1 parent eb49af0 commit e0581d3
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ name: "CodeQL config"

paths-ignore:
- "node_modules"
- "examples"
- "examples"
- "docs"
- "packages"
36 changes: 27 additions & 9 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,41 @@
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import stylistic from '@stylistic/eslint-plugin';

export default [
{
files: ['**/*.{js,ts}'],
},
{
ignores: ['dist', 'vite.config.js', 'examples', 'test', 'docs', 'packages'],
},
js.configs.recommended,
...tseslint.configs.strict,
stylistic.configs.customize({
jsx: false,
semi: true,
commaDangle: 'never',
arrowParens: true,
braceStyle: '1tbs',
blockSpacing: true,
indent: 2,
quoteProps: 'as-needed',
quotes: 'single'
}),
{
ignores: ['dist', 'examples', 'docs', 'packages']
},
{
rules: {
'no-unused-vars': 'off',
'no-undef': 'off',
'prefer-rest-params': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-wrapper-object-types': 'off'
},
},
'@typescript-eslint/no-wrapper-object-types': 'off',
'@typescript-eslint/no-dynamic-delete': 'off',
'@typescript-eslint/no-invalid-void-type': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/explicit-function-return-type': [
'error', {
allowExpressions: true
}
]
}
}
];
22 changes: 21 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"publish-major": "npm version major --git-tag-version false && npm run build && cd dist && npm publish --access public"
},
"devDependencies": {
"@eslint/js": "^9.10.0",
"@eslint/js": "^9.14.0",
"@stylistic/eslint-plugin": "^2.10.1",
"@three.ez/main": "^0.5.8",
"@types/three": "^0.170.0",
"eslint": "^9.14.0",
Expand Down

0 comments on commit e0581d3

Please sign in to comment.