mirror of https://github.com/nocodb/nocodb
Muhammed Mustafa
2 years ago
11 changed files with 6173 additions and 481 deletions
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh |
||||
. "$(dirname -- "$0")/_/husky.sh" |
||||
|
||||
npx lint-staged |
@ -0,0 +1,103 @@
|
||||
{ |
||||
"root": true, |
||||
"parser": "@typescript-eslint/parser", |
||||
"parserOptions": { |
||||
"project": "./tsconfig.json" |
||||
}, |
||||
"env": { |
||||
"es6": true |
||||
}, |
||||
"ignorePatterns": [ |
||||
"node_modules", |
||||
"build", |
||||
"coverage", |
||||
"dist", |
||||
"nc" |
||||
], |
||||
"plugins": [ |
||||
"import", |
||||
"eslint-comments", |
||||
"functional" |
||||
], |
||||
"extends": [ |
||||
"eslint:recommended", |
||||
"plugin:eslint-comments/recommended", |
||||
"plugin:@typescript-eslint/recommended", |
||||
"plugin:import/typescript", |
||||
"plugin:prettier/recommended" |
||||
], |
||||
"globals": { |
||||
"BigInt": true, |
||||
"console": true, |
||||
"WebAssembly": true |
||||
}, |
||||
"rules": { |
||||
"require-await": "error", |
||||
"@typescript-eslint/explicit-module-boundary-types": "off", |
||||
"eslint-comments/disable-enable-pair": [ |
||||
"error", |
||||
{ |
||||
"allowWholeFile": true |
||||
} |
||||
], |
||||
"eslint-comments/no-unused-disable": "error", |
||||
"sort-imports": [ |
||||
"error", |
||||
{ |
||||
"ignoreDeclarationSort": true, |
||||
"ignoreCase": true |
||||
} |
||||
], |
||||
"@typescript-eslint/no-this-alias": "off", |
||||
|
||||
// todo: enable |
||||
"@typescript-eslint/ban-ts-comment": "off", |
||||
"@typescript-eslint/no-explicit-any": "off", |
||||
"@typescript-eslint/no-unused-vars": "off", |
||||
"@typescript-eslint/no-var-requires": "off", |
||||
"no-useless-catch": "off", |
||||
"no-empty": "off", |
||||
"@typescript-eslint/no-empty-function": "off", |
||||
"import/order": "off" |
||||
|
||||
|
||||
// "@typescript-eslint/member-ordering": [ |
||||
// "warn" , |
||||
// { |
||||
// "default": { |
||||
// "memberTypes": [ "static-field", |
||||
// "public-field", |
||||
// "instance-field", |
||||
// "protected-field", |
||||
// "private-field", |
||||
// "abstract-field", |
||||
// |
||||
// "public-static-field", |
||||
// "protected-static-field", |
||||
// "private-static-field", |
||||
// "public-instance-field", |
||||
// "public-decorated-field", |
||||
// "public-abstract-field", |
||||
// "protected-instance-field", |
||||
// "protected-decorated-field", |
||||
// "protected-abstract-field", |
||||
// "private-instance-field", |
||||
// "private-decorated-field", |
||||
// "private-abstract-field", |
||||
// |
||||
// |
||||
// |
||||
// "constructor", |
||||
// |
||||
// "public-static-method", |
||||
// "protected-static-method", |
||||
// "private-static-method", |
||||
// "public-method", |
||||
// "protected-method", |
||||
// "private-method" |
||||
// ] |
||||
// } |
||||
// } |
||||
// ] |
||||
} |
||||
} |
@ -0,0 +1,3 @@
|
||||
{ |
||||
"./setup/index.ts": "npx eslint --fix" |
||||
} |
@ -0,0 +1,2 @@
|
||||
# package.json is formatted by package managers, so we ignore it here |
||||
package.json |
@ -0,0 +1,7 @@
|
||||
module.exports = { |
||||
"trailingComma": "es5", |
||||
"arrowParens": "avoid", |
||||
singleQuote: true, |
||||
tabWidth: 2, |
||||
printWidth: 120 |
||||
}; |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,70 @@
|
||||
{ |
||||
"compilerOptions": { |
||||
"skipLibCheck": true, |
||||
"composite": true, |
||||
"target": "es2017", |
||||
"outDir": "build/main", |
||||
"rootDir": "./", |
||||
"moduleResolution": "node", |
||||
"module": "commonjs", |
||||
"declaration": true, |
||||
"inlineSourceMap": true, |
||||
"esModuleInterop": true |
||||
/* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */, |
||||
"allowJs": false, |
||||
// "strict": true /* Enable all strict type-checking options. */, |
||||
|
||||
/* Strict Type-Checking Options */ |
||||
// "noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */, |
||||
// "strictNullChecks": true /* Enable strict null checks. */, |
||||
// "strictFunctionTypes": true /* Enable strict checking of function types. */, |
||||
// "strictPropertyInitialization": true /* Enable strict checking of property initialization in classes. */, |
||||
// "noImplicitThis": true /* Raise error on 'this' expressions with an implied 'any' type. */, |
||||
// "alwaysStrict": true /* Parse in strict mode and emit "use strict" for each source file. */, |
||||
"resolveJsonModule": true, |
||||
/* Additional Checks */ |
||||
"noUnusedLocals": true |
||||
/* Report errors on unused locals. */, |
||||
"noUnusedParameters": true |
||||
/* Report errors on unused parameters. */, |
||||
"noImplicitReturns": true |
||||
/* Report error when not all code paths in function return a value. */, |
||||
"noFallthroughCasesInSwitch": true |
||||
/* Report errors for fallthrough cases in switch statement. */, |
||||
/* Debugging Options */ |
||||
"traceResolution": false |
||||
/* Report module resolution log messages. */, |
||||
"listEmittedFiles": false |
||||
/* Print names of generated files part of the compilation. */, |
||||
"listFiles": false |
||||
/* Print names of files part of the compilation. */, |
||||
"pretty": true |
||||
/* Stylize errors and messages using color and context. */, |
||||
/* Experimental Options */ |
||||
// "experimentalDecorators": true /* Enables experimental support for ES7 decorators. */, |
||||
// "emitDecoratorMetadata": true /* Enables experimental support for emitting type metadata for decorators. */, |
||||
|
||||
"lib": [ |
||||
"es2017" |
||||
], |
||||
"types": [ |
||||
"node" |
||||
], |
||||
"typeRoots": [ |
||||
"node_modules/@types", |
||||
"src/types" |
||||
] |
||||
}, |
||||
"include": [ |
||||
"**/*.ts", |
||||
"**/*.json", |
||||
"**/*.d.ts", |
||||
"**/*.js", |
||||
"playwright.config.ts" |
||||
], |
||||
"exclude": [ |
||||
"node_modules/**", |
||||
"node_modules", |
||||
], |
||||
"compileOnSave": false |
||||
} |
Loading…
Reference in new issue