mirror of
https://github.com/IT4Change/ohmyform-ui.git
synced 2025-12-13 09:45:50 +00:00
add travis and eslint
This commit is contained in:
parent
ef250af6cb
commit
c2608f047e
22
.eslintrc.js
Normal file
22
.eslintrc.js
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
parser: '@typescript-eslint/parser',
|
||||||
|
parserOptions: {
|
||||||
|
ecmaFeatures: { jsx: true }
|
||||||
|
},
|
||||||
|
extends: [
|
||||||
|
'eslint:recommended',
|
||||||
|
'plugin:@typescript-eslint/eslint-recommended',
|
||||||
|
'plugin:@typescript-eslint/recommended',
|
||||||
|
'plugin:react/recommended',
|
||||||
|
"plugin:jsx-a11y/recommended",
|
||||||
|
'prettier/@typescript-eslint',
|
||||||
|
'plugin:prettier/recommended',
|
||||||
|
],
|
||||||
|
rules: {
|
||||||
|
'prettier/prettier': [
|
||||||
|
"error", {}, { "usePrettierrc": true }
|
||||||
|
],
|
||||||
|
'react/prop-types': 'off',
|
||||||
|
},
|
||||||
|
};
|
||||||
8
.prettierrc.js
Normal file
8
.prettierrc.js
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
module.exports = {
|
||||||
|
semi: false,
|
||||||
|
trailingComma: 'es5',
|
||||||
|
singleQuote: true,
|
||||||
|
printWidth: 100,
|
||||||
|
tabWidth: 2,
|
||||||
|
useTabs: false,
|
||||||
|
}
|
||||||
12
.travis.yml
Normal file
12
.travis.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
language: node_js
|
||||||
|
|
||||||
|
node_js:
|
||||||
|
- 8
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- node_modules
|
||||||
|
|
||||||
|
script:
|
||||||
|
- yarn
|
||||||
|
- yarn lint
|
||||||
|
- yarn build
|
||||||
14
README.md
14
README.md
@ -1,7 +1,15 @@
|
|||||||
# OhMyForm UI
|
# OhMyForm UI
|
||||||
|
|
||||||
[](https://opencollective.com/ohmyform-sustainability)
|

|
||||||

|

|
||||||
|

|
||||||
|
[](https://app.lokalise.com/public/379418475ede5d5c6937b0.31012044/)
|
||||||
|

|
||||||
|
|
||||||
|
> An *open source alternative to TypeForm* that can create stunning mobile-ready forms, surveys and questionnaires.
|
||||||
|
|
||||||
[](https://discord.gg/MJqAuAZ)
|
[](https://discord.gg/MJqAuAZ)
|
||||||
> An *open source alternative to TypeForm* that can create stunning mobile-ready forms, surveys and questionnaires.
|
[](https://opencollective.com/ohmyform-sustainability)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +0,0 @@
|
|||||||
files:
|
|
||||||
- source: /locales/en/*.json
|
|
||||||
translation: /locales/%two_letters_code%/%original_file_name%
|
|
||||||
10
package.json
10
package.json
@ -5,6 +5,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start:dev": "next dev -p 4000",
|
"start:dev": "next dev -p 4000",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
|
"lint": "eslint pages/ store/ components/ graphql/",
|
||||||
"export": "cross-env SPA=1 next build && next export",
|
"export": "cross-env SPA=1 next build && next export",
|
||||||
"start": "next start -p $PORT",
|
"start": "next start -p $PORT",
|
||||||
"translation:sort": "cross-env TS_NODE_TRANSPILE_ONLY=true ts-node-script locales/sort.ts",
|
"translation:sort": "cross-env TS_NODE_TRANSPILE_ONLY=true ts-node-script locales/sort.ts",
|
||||||
@ -43,9 +44,18 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.0.1",
|
"@types/node": "^14.0.1",
|
||||||
"@types/react": "^16.9.35",
|
"@types/react": "^16.9.35",
|
||||||
|
"@typescript-eslint/eslint-plugin": "^3.2.0",
|
||||||
|
"@typescript-eslint/parser": "^3.2.0",
|
||||||
"commander": "^5.1.0",
|
"commander": "^5.1.0",
|
||||||
|
"eslint": "^7.2.0",
|
||||||
|
"eslint-config-prettier": "^6.11.0",
|
||||||
|
"eslint-plugin-jsx-a11y": "^6.2.3",
|
||||||
|
"eslint-plugin-prettier": "^3.1.3",
|
||||||
|
"eslint-plugin-react": "^7.20.0",
|
||||||
|
"eslint-plugin-react-hooks": "^4.0.4",
|
||||||
"glob": "^7.1.6",
|
"glob": "^7.1.6",
|
||||||
"lodash.merge": "^4.6.2",
|
"lodash.merge": "^4.6.2",
|
||||||
|
"prettier": "^2.0.5",
|
||||||
"ts-node": "^8.10.2",
|
"ts-node": "^8.10.2",
|
||||||
"typescript": "^3.9.2"
|
"typescript": "^3.9.2"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user