Skip to content

Commit 7601656

Browse files
committed
squash: Start of port to eslint.
0 parents  commit 7601656

File tree

199 files changed

+11330
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+11330
-0
lines changed

.eslintrc

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"plugins": [
4+
"@typescript-eslint",
5+
"prettier"
6+
],
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/recommended",
10+
"plugin:prettier/recommended",
11+
"prettier/@typescript-eslint"
12+
],
13+
"parserOptions": {
14+
"ecmaVersion": 10,
15+
"project": "./tsconfig.json",
16+
"sourceType": "module"
17+
},
18+
"rules": {
19+
"@typescript-eslint/array-type": ["error", "generic"],
20+
"@typescript-eslint/explicit-function-return-type": "off",
21+
"@typescript-eslint/prefer-interface": "off",
22+
"@typescript-eslint/no-require-imports": "error",
23+
"@typescript-eslint/no-unused-vars": [
24+
"error",
25+
{
26+
"args": "after-used",
27+
"argsIgnorePattern": "^_",
28+
"caughtErrors": "none",
29+
"ignoreRestSiblings": true,
30+
"vars": "all"
31+
}
32+
],
33+
"@typescript-eslint/no-use-before-define": [
34+
"error",
35+
{
36+
"functions": false,
37+
"classes": false,
38+
"variables": true,
39+
"typedefs": false
40+
}
41+
]
42+
}
43+
}

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.DS_Store
2+
thumbs.db
3+
*.log
4+
node_modules/
5+
/scripts/**/*.js
6+
/rules/
7+
/coverage/
8+
/.nyc_output

.nycrc.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"include": ["rules/*.js"],
3+
"exclude": ["rules/index.js"],
4+
"extension": [".js"],
5+
"reporter": ["json"],
6+
"sourceMap": true,
7+
"all": true
8+
}

.travis.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
language: node_js
2+
cache:
3+
yarn: true
4+
directories:
5+
- node_modules
6+
notifications:
7+
email: false
8+
node_js:
9+
- "12"
10+
- "10"
11+
- "8"
12+
- "6"
13+
env:
14+
- TSVERSION=next
15+
- TSVERSION=latest
16+
- TSVERSION=3.0
17+
- TSVERSION=2.8
18+
matrix:
19+
allow_failures:
20+
- env: TSVERSION=next
21+
before_install:
22+
before_script:
23+
script:
24+
- yarn build
25+
- yarn lint
26+
- yarn add -D typescript@$TSVERSION
27+
- yarn coverage
28+
after_success:
29+
- yarn report-coverage

.vscode/settings.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"search.exclude": {
4+
"**/.git": true,
5+
"**/node_modules": true,
6+
"**/js_out": true,
7+
"**/dist": true,
8+
".idea/**": true,
9+
".vscode/**": true,
10+
"**/temp": true,
11+
"rules/**": true
12+
},
13+
"files.exclude": {
14+
".nyc_output": true,
15+
"coverage": true,
16+
"scripts/**/*.js": true
17+
}
18+
}

.vscode/tasks.json

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"version": "0.1.0",
3+
"tasks": [
4+
{
5+
"taskName": "tsc",
6+
"command": "yarn",
7+
"args": [
8+
"tsc"
9+
],
10+
"isShellCommand": true,
11+
"isBackground": true,
12+
"isBuildCommand": true,
13+
"problemMatcher": "$tsc"
14+
},
15+
{
16+
"taskName": "lint",
17+
"command": "yarn",
18+
"args": [
19+
"lint"
20+
],
21+
"isShellCommand": true,
22+
"problemMatcher": {
23+
"owner": "tslint",
24+
"fileLocation": "relative",
25+
"severity": "warning",
26+
"pattern": {
27+
"regexp": "^(\\S.*)\\[(\\d+), (\\d+)\\]:\\s+(.*)$",
28+
"file": 1,
29+
"line": 2,
30+
"column": 3,
31+
"message": 4
32+
}
33+
}
34+
}
35+
]
36+
}

0 commit comments

Comments
 (0)