Skip to content

Commit

Permalink
Merge pull request #49 from hiui-group/feature/refactor-for-v3
Browse files Browse the repository at this point in the history
Feature/refactor for v3
  • Loading branch information
GleanCoder1116 authored Jul 20, 2021
2 parents d2a0f53 + e34abf9 commit 2803706
Show file tree
Hide file tree
Showing 190 changed files with 14,599 additions and 30,245 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[COMMIT_EDITMSG]
max_line_length = 0
33 changes: 33 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
module.exports = {
env: {
browser: true,
es2021: true,
node: true
},
parser: 'babel-eslint',
extends: ['plugin:react/recommended', 'standard', 'prettier'],
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 12,
sourceType: 'module'
},
plugins: ['react', 'prettier'],
rules: {
'prettier/prettier': [
'warn',
{
singleQuote: true,
semi: false,
printWidth: 120,
trailingComma: 'none',
arrowParens: 'avoid'
}
],
'react/prop-types': 0,
'react/no-children-prop': 0,
'react/display-name': 0,
'react/jsx-key': 0
}
}
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ es/
.settings/
.vscode/
.tmp/
.eslintcache

# Dev dependencies and cache files
node_modules/
Expand All @@ -23,5 +24,4 @@ Desktop.ini
Thumbs.db
.Spotlight-V100
.Trashes

yarn.lock
yarn.lock
17 changes: 17 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"singleQuote": true,
"printWidth": 120,
"semi": false,
"useTabs": false,
"trailingComma": "none",
"arrowParens": "avoid",
"bracketSpacing": true,
"jsxSingleQuote": false,
"jsxBracketSameLine": false,
"overrides": [
{
"files": ".prettierrc",
"options": { "parser": "json" }
}
]
}
3 changes: 2 additions & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
"selector-list-comma-newline-after": "always",
"color-no-invalid-hex": true,
"no-descending-specificity": null
}
},
ignoreFiles: ['src/**/*.jsx', 'src/**/*.js']
}
631 changes: 631 additions & 0 deletions api.json

Large diffs are not rendered by default.

Loading

0 comments on commit 2803706

Please sign in to comment.