Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
// JS Files
"root": true,
"env": {
"atomtest": true,
"es6": true,
"node": true,
"browser": true,
"jasmine": true
},
"globals": { "atom": "writable" },
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": { "jsx": true },
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["only-warn"],
"extends": ["eslint:recommended"],
"overrides": [
{ // Bundled node version with atom has an old ESLint
// TypeScript files
"files": ["**/*.ts", "**/*.tsx"],
"env": {
"atomtest": true,
"es6": true,
"node": true,
"browser": true
},
"globals": { "atom": "writable" },
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": { "jsx": true },
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "only-warn"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/member-delimiter-style": "off"
}
},
{
// CoffeeScript files
"files": ["**/*.coffee"],
"env": {
"atomtest": true,
"es6": true,
"node": true,
"browser": true
},
"globals": { "atom": "writable" },
// "parser": "eslint-plugin-coffee",
"parser": "eslint-plugin-coffee",
"parserOptions": {
"ecmaFeatures": { "jsx": true },
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["coffee", "only-warn"],
"extends": ["plugin:coffee/eslint-recommended"]
},
{
// JSON files
"files": ["*.json"],
"plugins": ["json"],
"extends": ["plugin:json/recommended"],
"rules": {
"json/*": ["error", {"allowComments": true}]
}
}
]
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.DS_Store
npm-debug.log
node_modules
lib_src/**/*
!lib_src/tsconfig.json
!lib_src/tslint.json
tsconfig.tsbuildinfo
40 changes: 40 additions & 0 deletions lib_src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"compilerOptions": {
//// Linting Options - Uncomment options to get more features (usually more restrictive)
"strict": true,
"strictNullChecks": true,
// "forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noImplicitAny": true,
"noImplicitThis": true,
"noFallthroughCasesInSwitch": true,
"allowJs": true,
//// Compilation options
"declaration": true,
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"incremental": true,
"tsBuildInfoFile": "../tsconfig.tsbuildinfo",
// "inlineSourceMap": true,
// "preserveConstEnums": true,
// "sourceMap": true,
"preserveSymlinks": true,
// "removeComments": true,
// "jsx": "react",
// "jsxFactory": "etch.dom",
"lib": ["ES2018", "dom"],
"target": "ES2018",
"module": "commonjs",
"moduleResolution": "node",
// "noLib": false,
// "importHelpers": true, // if true you should add tslib to deps
// "skipLibCheck": false,

"outDir": "../lib/misc"
},
"files": ["misc/colors.ts"],
"compileOnSave": false
}
20 changes: 20 additions & 0 deletions lib_src/tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended",
"tslint-config-prettier"
],
"jsRules": {},
"rules": {
"array-type": false,
"only-arrow-functions": false,
"ordered-imports": false,
"no-console": false,
"curly": false,
"variable-name": false,
"arrow-parens": false,
"object-literal-sort-keys": false,
"object-literal-shorthand": false
},
"rulesDirectory": []
}
Loading