Skip to content

Commit 74c34f2

Browse files
committed
feat: refactor repo
1 parent 0b8e46d commit 74c34f2

Some content is hidden

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

57 files changed

+10389
-1524
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_size = 2
8+
indent_style = space
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[*.{yml,yaml}]
16+
indent_size = 2

.eslintignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
playground/node_modules
2-
playground/jspm_packages
3-
playground/build.js
1+
# Note: We're ignoring this while we get the rest of the repo setup
2+
.snapshots
3+
dist
4+
node_modules
5+
playground

.eslintrc

Lines changed: 0 additions & 24 deletions
This file was deleted.

.eslintrc.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
module.exports = {
2+
extends: ['shellscape/typescript', 'plugin:import/typescript'],
3+
overrides: [
4+
{
5+
files: ['*.d.ts'],
6+
rules: {
7+
'no-underscore-dangle': 'off',
8+
'spaced-comment': 'off'
9+
}
10+
},
11+
{
12+
files: ['*.ts', '*.tsx'],
13+
rules: {
14+
'no-shadow': 'off',
15+
'no-undef': 'off'
16+
}
17+
},
18+
{
19+
files: ['**/scripts/**', '**/test/**'],
20+
rules: {
21+
'import/extensions': 'off',
22+
'import/no-extraneous-dependencies': 'off',
23+
'import/no-unresolved': 'off',
24+
'no-console': 'off'
25+
}
26+
}
27+
],
28+
parserOptions: {
29+
project: ['./tsconfig.eslint.json'],
30+
tsconfigRootDir: __dirname
31+
},
32+
rules: {
33+
'@typescript-eslint/consistent-type-imports': 'error',
34+
'@typescript-eslint/no-unused-vars': [
35+
'error',
36+
{
37+
args: 'after-used',
38+
argsIgnorePattern: '^_',
39+
caughtErrorsIgnorePattern: '^_',
40+
ignoreRestSiblings: true,
41+
vars: 'local',
42+
varsIgnorePattern: '^_'
43+
}
44+
],
45+
// Note: postcss-css-variables makes heavy use of these.
46+
'no-loop-func': 'off'
47+
}
48+
};

.gitignore

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
node_modules/
2-
npm-debug.log
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
32

4-
playground/node_modules/
5-
playground/jspm_packages/
6-
todo.md
3+
.eslintcache
4+
node_modules
5+
dist
6+
.DS_Store
7+
.pnpm-debug.log*
8+
.env

.npmignore

Lines changed: 0 additions & 11 deletions
This file was deleted.

.npmrc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
package-lock=false
1+
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
2+
3+
# npm options
4+
auth-type=legacy
5+
6+
# pnpm options
7+
always-auth = true
8+
enable-pre-post-scripts = true
9+
link-workspace-packages = false
10+
shamefully-hoist = true
11+
shared-workspace-lockfile = true
12+
strict-peer-dependencies = false

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

.prettierrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Note: This file is necessary so that prettier writes which happen in hooks and scripts match the
2+
// same config that we're using from the eslint-config package.
3+
module.exports = require('eslint-config-shellscape/prettier');

.travis.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)