Skip to content

Commit

Permalink
js -> jsx for files that contain JSX
Browse files Browse the repository at this point in the history
  • Loading branch information
tima101 committed Sep 22, 2020
1 parent 623cf10 commit 2c59539
Show file tree
Hide file tree
Showing 239 changed files with 1,249 additions and 385 deletions.
66 changes: 65 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,76 @@
"source.fixAll.eslint": true
},
"eslint.workingDirectories": [
{
"directory": "./builderbook/",
"changeProcessCWD": true
},
{
"directory": "./book/9-end/",
"changeProcessCWD": true
},
{
"directory": "./book/9-begin/",
"changeProcessCWD": true
},
{
"directory": "./book/8-end/",
"changeProcessCWD": true
},
{
"directory": "./builderbook/",
"directory": "./book/8-begin/",
"changeProcessCWD": true
},
{
"directory": "./book/7-end/",
"changeProcessCWD": true
},
{
"directory": "./book/7-begin/",
"changeProcessCWD": true
},
{
"directory": "./book/6-end/",
"changeProcessCWD": true
},
{
"directory": "./book/6-begin/",
"changeProcessCWD": true
},
{
"directory": "./book/5-end/",
"changeProcessCWD": true
},
{
"directory": "./book/5-begin/",
"changeProcessCWD": true
},
{
"directory": "./book/4-end/",
"changeProcessCWD": true
},
{
"directory": "./book/4-begin/",
"changeProcessCWD": true
},
{
"directory": "./book/3-end/",
"changeProcessCWD": true
},
{
"directory": "./book/3-begin/",
"changeProcessCWD": true
},
{
"directory": "./book/2-end/",
"changeProcessCWD": true
},
{
"directory": "./book/2-begin/",
"changeProcessCWD": true
},
{
"directory": "./book/1-end/",
"changeProcessCWD": true
},
],
Expand Down
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -435,13 +435,13 @@ All code in this repository is provided under the [MIT License](https://github.c
│ │ ├── config.yml
│ ├── components
│ │ ├── admin
│ │ │ ├── EditBook.js
│ │ │ ├── EditBook.jsx
│ │ ├── customer
│ │ │ ├── BuyButton.js
│ │ ├── Header.js
│ │ ├── MenuDrop.js
│ │ ├── Notifier.js
│ │ ├── SubscribeForm.js
│ │ │ ├── BuyButton.jsx
│ │ ├── Header.jsx
│ │ ├── MenuDrop.jsx
│ │ ├── Notifier.jsx
│ │ ├── SharedStyles.jsx
├── lib
│ ├── api
│ │ ├── admin.js
Expand All @@ -452,21 +452,21 @@ All code in this repository is provided under the [MIT License](https://github.c
│ ├── env.js
│ ├── notifier.js
│ ├── theme.js
│ ├── withAuth.js
│ ├── withAuth.jsx
├── pages
│ ├── admin
│ │ ├── add-book.js
│ │ ├── book-detail.js
│ │ ├── edit-book.js
│ │ ├── index.js
│ │ ├── add-book.jsx
│ │ ├── book-detail.jsx
│ │ ├── edit-book.jsx
│ │ ├── index.jsx
│ ├── customer
│ │ ├── my-books.js
│ │ ├── my-books.jsx
│ ├── public
│ │ ├── login.js
│ │ ├── read-chapter.js
│ ├── _app.js
│ ├── _document.js
│ ├── index.js
│ │ ├── login.jsx
│ │ ├── read-chapter.jsx
│ ├── _app.jsx
│ ├── _document.jsx
│ ├── index.jsx
├── public
│ ├── robots.txt
├── server
Expand Down
55 changes: 55 additions & 0 deletions book/1-end/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
module.exports = {
parser: 'babel-eslint',
extends: ['airbnb', 'plugin:prettier/recommended'],
env: {
browser: true,
jest: true,
},
plugins: ['react', 'jsx-a11y', 'import', 'prettier'],
rules: {
'prettier/prettier': [
'error',
{
singleQuote: true,
trailingComma: 'all',
arrowParens: 'always',
printWidth: 100,
semi: true
},
],
'camelcase': 'off',
'max-len': ['error', 100],
'no-underscore-dangle': ['error', { allow: ['_id'] }],
'no-mixed-operators': 'off',
'prefer-destructuring': [
'error',
{
VariableDeclarator: {
array: false,
object: true,
},
AssignmentExpression: {
array: true,
object: false,
},
},
{
enforceForRenamedProperties: false,
},
],
'import/prefer-default-export': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'react/jsx-wrap-multilines': 'off',
'react/destructuring-assignment': 'off',
'react/no-danger': 'off',
'react/jsx-one-expression-per-line': 'off',
'react/jsx-props-no-spreading': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-filename-extension': [
'error',
{
extensions: ['.jsx'],
},
],
},
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
55 changes: 55 additions & 0 deletions book/2-begin/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
module.exports = {
parser: 'babel-eslint',
extends: ['airbnb', 'plugin:prettier/recommended'],
env: {
browser: true,
jest: true,
},
plugins: ['react', 'jsx-a11y', 'import', 'prettier'],
rules: {
'prettier/prettier': [
'error',
{
singleQuote: true,
trailingComma: 'all',
arrowParens: 'always',
printWidth: 100,
semi: true
},
],
'camelcase': 'off',
'max-len': ['error', 100],
'no-underscore-dangle': ['error', { allow: ['_id'] }],
'no-mixed-operators': 'off',
'prefer-destructuring': [
'error',
{
VariableDeclarator: {
array: false,
object: true,
},
AssignmentExpression: {
array: true,
object: false,
},
},
{
enforceForRenamedProperties: false,
},
],
'import/prefer-default-export': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'react/jsx-wrap-multilines': 'off',
'react/destructuring-assignment': 'off',
'react/no-danger': 'off',
'react/jsx-one-expression-per-line': 'off',
'react/jsx-props-no-spreading': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-filename-extension': [
'error',
{
extensions: ['.jsx'],
},
],
},
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
55 changes: 55 additions & 0 deletions book/2-end/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
module.exports = {
parser: 'babel-eslint',
extends: ['airbnb', 'plugin:prettier/recommended'],
env: {
browser: true,
jest: true,
},
plugins: ['react', 'jsx-a11y', 'import', 'prettier'],
rules: {
'prettier/prettier': [
'error',
{
singleQuote: true,
trailingComma: 'all',
arrowParens: 'always',
printWidth: 100,
semi: true
},
],
'camelcase': 'off',
'max-len': ['error', 100],
'no-underscore-dangle': ['error', { allow: ['_id'] }],
'no-mixed-operators': 'off',
'prefer-destructuring': [
'error',
{
VariableDeclarator: {
array: false,
object: true,
},
AssignmentExpression: {
array: true,
object: false,
},
},
{
enforceForRenamedProperties: false,
},
],
'import/prefer-default-export': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'react/jsx-wrap-multilines': 'off',
'react/destructuring-assignment': 'off',
'react/no-danger': 'off',
'react/jsx-one-expression-per-line': 'off',
'react/jsx-props-no-spreading': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-filename-extension': [
'error',
{
extensions: ['.jsx'],
},
],
},
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
55 changes: 55 additions & 0 deletions book/3-begin/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
module.exports = {
parser: 'babel-eslint',
extends: ['airbnb', 'plugin:prettier/recommended'],
env: {
browser: true,
jest: true,
},
plugins: ['react', 'jsx-a11y', 'import', 'prettier'],
rules: {
'prettier/prettier': [
'error',
{
singleQuote: true,
trailingComma: 'all',
arrowParens: 'always',
printWidth: 100,
semi: true
},
],
'camelcase': 'off',
'max-len': ['error', 100],
'no-underscore-dangle': ['error', { allow: ['_id'] }],
'no-mixed-operators': 'off',
'prefer-destructuring': [
'error',
{
VariableDeclarator: {
array: false,
object: true,
},
AssignmentExpression: {
array: true,
object: false,
},
},
{
enforceForRenamedProperties: false,
},
],
'import/prefer-default-export': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'react/jsx-wrap-multilines': 'off',
'react/destructuring-assignment': 'off',
'react/no-danger': 'off',
'react/jsx-one-expression-per-line': 'off',
'react/jsx-props-no-spreading': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-filename-extension': [
'error',
{
extensions: ['.jsx'],
},
],
},
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 2c59539

Please sign in to comment.