Skip to content

Commit

Permalink
indentation 4 -> 2 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
neefrehman committed Dec 30, 2022
1 parent 05b8250 commit ace779b
Show file tree
Hide file tree
Showing 239 changed files with 17,880 additions and 17,661 deletions.
4 changes: 2 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"presets": ["next/babel", "linaria/babel"],
"plugins": ["glsl"]
"presets": ["next/babel", "linaria/babel"],
"plugins": ["glsl"]
}
272 changes: 130 additions & 142 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,147 +1,135 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"allowImportExportEverywhere": true,
"project": "./tsconfig.json",
"tsconfigRootDir": "./"
},
"env": {
"browser": true,
"node": true
},
"globals": { "JSX": true },
"plugins": [
"jsx-a11y",
"prettier",
"import",
"@typescript-eslint"
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"allowImportExportEverywhere": true,
"project": "./tsconfig.json",
"tsconfigRootDir": "./"
},
"env": {
"browser": true,
"node": true
},
"globals": { "JSX": true },
"plugins": ["jsx-a11y", "prettier", "import", "@typescript-eslint"],
"extends": [
"airbnb",
"plugin:@typescript-eslint/recommended",
"plugin:jsx-a11y/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"next",
"prettier"
],
"settings": {
"import/resolver": {
"typescript": {}
}
},
"rules": {
"strict": 0,
"no-console": "warn",
"no-plusplus": [
"warn",
{
"allowForLoopAfterthoughts": true
}
],
"no-unused-expressions": "off",
"no-undef": "error",
"no-param-reassign": [
"error",
{
"props": true,
"ignorePropertyModificationsForRegex": [
"p",
"context",
"ctx",
"canvas",
"camera",
"current",
"scene",
"t",
"mesh",
"uniforms",
"renderer"
]
}
],
"extends": [
"airbnb",
"plugin:@typescript-eslint/recommended",
"plugin:jsx-a11y/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"next",
"prettier"
"lines-between-class-members": [
"warn",
"always",
{
"exceptAfterSingleLine": true
}
],
"settings": {
"import/resolver": {
"typescript": {}
"prefer-destructuring": [
"error",
{
"AssignmentExpression": {
"array": false
}
},
"rules": {
"strict": 0,
"no-console": "warn",
"no-plusplus": [
"warn",
{
"allowForLoopAfterthoughts": true
}
],
"no-unused-expressions": "off",
"no-undef": "error",
"no-param-reassign": [
"error",
{
"props": true,
"ignorePropertyModificationsForRegex": [
"p",
"context",
"ctx",
"canvas",
"camera",
"current",
"scene",
"t",
"mesh",
"uniforms",
"renderer"
]
}
],
"lines-between-class-members": [
"warn",
"always",
{
"exceptAfterSingleLine": true
}
],
"prefer-destructuring": [
"error",
{
"AssignmentExpression": {
"array": false
}
}
],
"prefer-const": ["warn"],
"import/order": [
"warn",
{
"newlines-between": "always",
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index"
],
"pathGroups": [
{
"pattern": "Renderers/**",
"group": "internal",
"position": "before"
},
{
"pattern": "LibUtils/**",
"group": "internal",
"position": "after"
},
{
"pattern": "Utils/**",
"group": "internal",
"position": "after"
}
]
}
],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"ts": "never",
"tsx": "never"
}
],
"import/prefer-default-export": "off",
"prettier/prettier": "warn",
"react/prop-types": "off",
"react/jsx-filename-extension": "off",
"react/jsx-indent": [2, 4],
"react/jsx-indent-props": [2, 4],
"react/jsx-one-expression-per-line": "off",
"react/no-danger": "warn",
"react/require-default-props": "off",
"react/no-unused-prop-types": "off",
"react/function-component-definition": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["href"],
"aspects": ["invalidHref", "preferButton"]
}
],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/consistent-type-imports": ["warn"],
"@typescript-eslint/ban-ts-comment": "off"
}
}
],
"prefer-const": ["warn"],
"import/order": [
"warn",
{
"newlines-between": "always",
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
"pathGroups": [
{
"pattern": "Renderers/**",
"group": "internal",
"position": "before"
},
{
"pattern": "LibUtils/**",
"group": "internal",
"position": "after"
},
{
"pattern": "Utils/**",
"group": "internal",
"position": "after"
}
]
}
],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"ts": "never",
"tsx": "never"
}
],
"import/prefer-default-export": "off",
"prettier/prettier": "warn",
"react/prop-types": "off",
"react/jsx-filename-extension": "off",
"react/jsx-indent": [2, 2],
"react/jsx-indent-props": [2, 2],
"react/jsx-one-expression-per-line": "off",
"react/no-danger": "warn",
"react/require-default-props": "off",
"react/no-unused-prop-types": "off",
"react/function-component-definition": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["href"],
"aspects": ["invalidHref", "preferButton"]
}
],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/consistent-type-imports": ["warn"],
"@typescript-eslint/ban-ts-comment": "off"
}
}
14 changes: 7 additions & 7 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"printWidth": 83,
"tabWidth": 4,
"singleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"arrowParens": "avoid",
"semi": true
"printWidth": 85,
"tabWidth": 2,
"singleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"arrowParens": "avoid",
"semi": true
}
4 changes: 2 additions & 2 deletions files.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ declare module "*.jpg";

declare module "postprocessing";
declare module "glslify" {
function glsl(shader?: TemplateStringsArray): string;
export = glsl;
function glsl(shader?: TemplateStringsArray): string;
export = glsl;
}
Loading

0 comments on commit ace779b

Please sign in to comment.