Skip to content

Commit

Permalink
Merge pull request #55 from blackboardd/style/standardize
Browse files Browse the repository at this point in the history
  • Loading branch information
vantaboard committed Oct 10, 2021
2 parents 7ea69cf + 2940ec4 commit 4542e91
Show file tree
Hide file tree
Showing 15 changed files with 90 additions and 334 deletions.
92 changes: 22 additions & 70 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,73 +1,25 @@
module.exports = {
root: true,
env: {
node: true,
es6: true,
},
parserOptions: { ecmaVersion: 8, sourceType: 'module' },
ignorePatterns: ['node_modules/*'],
extends: ['eslint:recommended'],
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
parser: '@typescript-eslint/parser',
settings: {
react: { version: 'detect' },
'import/resolver': {
typescript: {},
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
},
env: {
browser: true,
node: true,
es6: true,
},
extends: [
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended',
'plugin:prettier/recommended',
],
rules: {
'no-restricted-imports': [
'error',
{
patterns: ['@/features/*/*'],
},
],
'linebreak-style': ['error', 'unix'],
'react/prop-types': 'off',

'import/order': [
'error',
{
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object'],
'newlines-between': 'always',
alphabetize: { order: 'asc', caseInsensitive: true },
},
],
'import/default': 'off',
'import/no-named-as-default-member': 'off',
'import/no-named-as-default': 'off',

'react/react-in-jsx-scope': 'off',

'jsx-a11y/anchor-is-valid': 'off',

'@typescript-eslint/no-unused-vars': ['error'],

'@typescript-eslint/explicit-function-return-type': ['off'],
'@typescript-eslint/explicit-module-boundary-types': ['off'],
'@typescript-eslint/no-empty-function': ['off'],
'@typescript-eslint/no-explicit-any': ['off'],

'prettier/prettier': ['error', {}, { usePrettierrc: true }],
},
"ecmaVersion": 13,
"sourceType": "module"
},
],
};
"plugins": [
"react",
"@typescript-eslint"
],
"rules": {
}
};
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Node
node_modules

# Typescript build files
# distribution files
/dist/

# Environmental variables
Expand All @@ -10,8 +10,5 @@ node_modules
# Log files
*.log

# Storybook
storybook-static

# Style dictionary
/src/style-dictionary-dist
4 changes: 2 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
"changelogFile": "docs/CHANGELOG.md"
}
],
"@semantic-release/github",
Expand All @@ -46,7 +46,7 @@
[
"@semantic-release/git",
{
"assets": ["dist/**/*.{js,css}", "package.json", "CHANGELOG.md"],
"assets": ["dist/**/*.{js,css}", "package.json", "docs/CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
Expand Down
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/node_modules": true
}
}
56 changes: 0 additions & 56 deletions CHANGELOG.md

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@

## Changelog

If you have recently updated, please read the [changelog](https://github.com/blackboardd/magui/blob/main/CHANGELOG.md) for details of what has changed.
If you have recently updated, please read the [changelog](https://github.com/blackboardd/magui/blob/main/docs/CHANGELOG.md) for details of what has changed.

## 🧑‍🤝‍🧑 Contributing

Read the [contributing guide](/CONTRIBUTING.md) to learn about our development process, and how to craft proposals.
Read the [contributing guide](/docs/CONTRIBUTING.md) to learn about our development process, and how to craft proposals.

## ⚖️ License

Expand Down
55 changes: 0 additions & 55 deletions TODO.md

This file was deleted.

Loading

0 comments on commit 4542e91

Please sign in to comment.