Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #24 from appfolio/update-all-versions
Browse files Browse the repository at this point in the history
Update to use `appfolio-base` version 2.0.0
  • Loading branch information
aaronmars authored Feb 7, 2022
2 parents 45cd458 + f47708c commit b3dea8b
Show file tree
Hide file tree
Showing 4 changed files with 1,412 additions and 1,330 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,21 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x]
node-version: [14, 16]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, and lint
run: |
npm ci
npm run lint
env:
CI: true
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, and lint
run: |
npm ci
npm run lint
env:
CI: true
61 changes: 25 additions & 36 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,40 +1,29 @@
module.exports = {
extends: ['airbnb', 'appfolio-base'],
env: {
browser: true
},
extends: ['airbnb', '@appfolio/eslint-config-appfolio-base'],
env: { browser: true },
rules: {
'class-methods-use-this': 0,
'jsx-a11y/anchor-is-valid': [2, {
components: ['Link'],
specialLink: ['to']
}],

// Relaxes the prefer-default-export rule. We often have services / apis
// that start with a single named export which should not be the `default`.
'import/prefer-default-export': 0,

'react/forbid-prop-types': 0,
'react/jsx-filename-extension': 0,
'react/prefer-stateless-function': 0,
'react/prop-types': 1,
'react/require-default-props': 0,
'react/sort-comp': [1, {
order: [
'propTypes',
'defaultProps',
'static-methods',
'state',
'constructor',
'everything-else',
'lifecycle',
'render'
]
}]
'class-methods-use-this': 'off',
'jsx-a11y/anchor-is-valid': ['error', { components: ['Link'], specialLink: ['to'] }],
'react/forbid-prop-types': 'off',
'react/jsx-filename-extension': 'off',
'react/prefer-stateless-function': 'off',
'react/prop-types': 'warn',
'react/require-default-props': 'off',
'react/sort-comp': [
'warn',
{
order: [
'propTypes',
'defaultProps',
'static-methods',
'state',
'constructor',
'everything-else',
'lifecycle',
'render'
]
}
]
},
settings: {
'import/resolver': {
webpack: {}
}
}
settings: { 'import/resolver': { webpack: {} } }
};
Loading

0 comments on commit b3dea8b

Please sign in to comment.