Skip to content

Commit

Permalink
feat(Resistor Colors): add Resistor Colors
Browse files Browse the repository at this point in the history
  • Loading branch information
odykyi committed Jun 3, 2020
1 parent d73a02b commit 2f2408c
Show file tree
Hide file tree
Showing 20 changed files with 21,933 additions and 23 deletions.
8 changes: 8 additions & 0 deletions typescript/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
bin/*
dist/*
docs/*
node_modules/*
production_node_modules/*
test/fixtures/*
tmp/*
jest.config.js
64 changes: 64 additions & 0 deletions typescript/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"env": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/array-type": "off", // Styling not forced upon the student
"@typescript-eslint/explicit-function-return-type": [
"warn", {
"allowExpressions": false,
"allowTypedFunctionExpressions": true,
"allowHigherOrderFunctions": true
}
], // Prevent bugs
"@typescript-eslint/explicit-member-accessibility": "off", // Styling not forced upon the student
"@typescript-eslint/indent": "off", // Styling not forced upon the student
"@typescript-eslint/no-inferrable-types": [
"error", {
"ignoreParameters": true
}
],
"@typescript-eslint/member-delimiter-style": "off", // Styling not forced upon the student
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-parameter-properties": [
"warn", {
"allows": [
"private", "protected", "public",
"private readonly", "protected readonly", "public readonly"
]
}
], // only disallow readonly without an access modifier
"@typescript-eslint/no-unused-vars": "off", // Covered by the tsc compiler (noUnusedLocals)
"@typescript-eslint/no-use-before-define": [
"error", {
"functions": false,
"typedefs": false
}
], // Prevent bugs, not styling
"semi": "off", // Always disable base-rule
"@typescript-eslint/semi": "off" // Styling not forced upon student
}
}
Loading

0 comments on commit 2f2408c

Please sign in to comment.