Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add more prevent-abbreviations replacements and whitelist (#464)
  • Loading branch information
fisker authored and sindresorhus committed Dec 3, 2019
1 parent e82d260 commit cfd3d49
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion rules/prevent-abbreviations.js
Expand Up @@ -86,6 +86,9 @@ const defaultReplacements = {
env: {
environment: true
},
envs: {
environments: true
},
err: {
error: true
},
Expand Down Expand Up @@ -182,6 +185,9 @@ const defaultReplacements = {
temp: {
temporary: true
},
tit: {
title: true
},
tmp: {
temporary: true
},
Expand All @@ -199,7 +205,19 @@ const defaultWhitelist = {
defaultProps: true,
// React.Component static method
// https://reactjs.org/docs/react-component.html#static-getderivedstatefromprops
getDerivedStateFromProps: true
getDerivedStateFromProps: true,
// Ember class name
// https://api.emberjs.com/ember/3.10/classes/Ember.EmberENV/properties
EmberENV: true,
// `package.json` field
// https://docs.npmjs.com/specifying-dependencies-and-devdependencies-in-a-package-json-file
devDependencies: true,
// Jest configuration
// https://jestjs.io/docs/en/configuration#setupfilesafterenv-array
setupFilesAfterEnv: true,
// Next.js function
// https://nextjs.org/learn/basics/fetching-data-for-pages
getInitialProps: true
};

const prepareOptions = ({
Expand Down

0 comments on commit cfd3d49

Please sign in to comment.